package com.ruoyi.movie.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 演职人员关联对象 cast
 *
 * @author ruoyi
 * @date 2025-10-28
 */
public class Cast extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联ID */
    private Integer castId;

    /** 影视ID */
    private Integer movieId;

    /** 演员ID */
    private Integer actorId;

    /** 职业ID */
    private Integer professionId;

    /** 角色名 */
    private String role;

    public Integer getCastId()
    {
        return castId;
    }

    public void setCastId(Integer castId)
    {
        this.castId = castId;
    }

    public Integer getMovieId()
    {
        return movieId;
    }

    public void setMovieId(Integer movieId)
    {
        this.movieId = movieId;
    }

    public Integer getActorId()
    {
        return actorId;
    }

    public void setActorId(Integer actorId)
    {
        this.actorId = actorId;
    }

    public Integer getProfessionId()
    {
        return professionId;
    }

    public void setProfessionId(Integer professionId)
    {
        this.professionId = professionId;
    }

    public String getRole()
    {
        return role;
    }

    public void setRole(String role)
    {
        this.role = role;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("castId", getCastId())
            .append("movieId", getMovieId())
            .append("actorId", getActorId())
            .append("professionId", getProfessionId())
            .append("role", getRole())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}